package com.jkoss.wine.shop.service.impl;

import com.jkoss.wine.shop.entity.ShopFollow;
import com.jkoss.wine.shop.mapper.ShopFollowMapper;
import com.jkoss.wine.shop.service.IShopFollowService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * 客户跟进记录 服务实现类
 * 
 * @Author 周华军
 * @Version 1.0, 2018-10-07
 * @See
 * @Since com.jkoss.wine.shop.service.impl
 * @Description: TODO
 */
@Service
public class ShopFollowServiceImpl extends ServiceImpl<ShopFollowMapper, ShopFollow> implements IShopFollowService {

	@Override
	public Page selectVoByPage(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoByPage(page, wrapper));
		return page;
	}

	@Override
	public List selectVoByList(Wrapper wrapper) {
		return baseMapper.selectVoByList(wrapper);
	}
}
